# frozen_string_literal: true

class RuleEntity
  class GeneralRule
    class Condition
      class All < RuleEntity::GeneralRule::Condition
        def build_archive_params
          raise 'Unsupported.'
        end

        def only_fire?(params)
          rule_conditions.all? do |condition|
            condition.fire(params, schema.input_types_map)
          end
        end
      end
    end
  end
end
